//
//  MyPagelistTableViewCell.m
//  TTMusic
//
//  Created by yanghuiyan on 16/3/31.
//  Copyright © 2016年 cpy. All rights reserved.
//

#import "MyPagelistTableViewCell.h"
#define Width self.bounds.size.width
#define Height self.bounds.size.height
@implementation MyPagelistTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.pic = [[UIImageView alloc] initWithFrame:CGRectZero];
        self.pic.backgroundColor = [UIColor cyanColor];
        [self.contentView addSubview:self.pic];
        self.oneLabel = [[UILabel alloc] initWithFrame:CGRectZero];
        self.oneLabel.backgroundColor = [UIColor cyanColor];
        [self.contentView addSubview:self.oneLabel];
        self.twoLabel = [[UILabel alloc] initWithFrame:CGRectZero];
        self.twoLabel.backgroundColor = [UIColor cyanColor];
        [self.contentView addSubview:self.twoLabel];
        self.button = [UIButton buttonWithType:UIButtonTypeSystem];
        [self.button setTitle:@">" forState:UIControlStateNormal];
        [self.button setTintColor:[UIColor grayColor]];
        [self.contentView addSubview:self.button];
    }
    return self;
}

- (void)layoutSubviews {
    [super layoutSubviews];
    self.pic.frame = CGRectMake(10, 10, 100, 100);
    self.oneLabel.frame = CGRectMake(120, 30, 100, 20);
    self.twoLabel.frame = CGRectMake(120, 60, 100, 20);
    self.button.frame = CGRectMake(300, 50, 60, 20);
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
